package top.humbleyuan.test.GuangLianDa;

/**
 * @Author HumbleYuan
 * @Date 2020/5/13 15:07
 * @Des
 */
public class GuangLianDa_5_13 {
    public static void main(String[] args) {
        System.out.println(func());
        //func();
    }

    public static int func() {
        for (int i = 1001; i < 2001; i++) {
            int tmp = i * 5 / 4 - 1, cnt = 0;
            while (tmp % 5 == 4 && cnt <= 5) {
                tmp = tmp * 5 / 4 - 1;
                cnt++;
            }
            if (cnt == 5) {
                return i;
            }
        }
        return -1;

    }
}
